<template>
  <div class="home">
    {{banner}}
  </div>
</template>

<script>
import { ref, onMounted } from "vue";
import { getHomeAllData, getBanner } from "network/home";
export default {
  name: "Home",
  setup() {
    const banner = ref([]);

    onMounted(() => {
      console.log("onmounted");
      getHomeAllData()
        .then((res) => {
          banner.value = res.slides
        })
        .catch((err) => {});
    });

    return {
      banner
    }
  },
};
</script>
